<?php
	/**
	 * 购物车用户订单货品商品信息管理
	 */
	class CartContModel extends ViewModel{
		protected $table = 'goods';

		protected $viewFields = array(
			'goods' => array(
			'id', 'name', 'sprice', 'unit', 'number',
			'_type' => 'LEFT'
			),
			'goods_attr' => array(
				'id' => 'attrid','price','value',
				'_on' => 'goods.id = goods_attr.gid'
			),
			'goods_list' => array(
				'inventory' , 'attr' ,
				'_on' => 'goods.id = goods_list.gid'
			),
			'intro' => array(
				'medium',
				'_on' => 'goods.id = intro.gid'
			)
		);
	}
?>